package com.catsic.mod.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import com.catsic.base.BaseServiceImpl;
import com.catsic.mod.condition.ReadMessageCondition;
import com.catsic.mod.dao.ReadMessageDao;
import com.catsic.mod.entity.ReadMessage;
import com.catsic.mod.form.ReadMessageForm;
import com.catsic.mod.service.ReadMessageService;

@Service("ReadMessageService")
public class ReadMessageServiceImpl extends BaseServiceImpl<ReadMessage, String> implements ReadMessageService{

	@Autowired
	private ReadMessageDao ReadMessageDao;
	

	
	@Override
	public Page<ReadMessageForm> findAll(ReadMessageCondition condition,
			Pageable pageable) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public ReadMessage add(ReadMessageForm rendMessageForm) {
		ReadMessage readMessage=new ReadMessage();
		readMessage.setMessageId(rendMessageForm.getMessageId());
		readMessage.setUserId(rendMessageForm.getUserId());
		return super.add(readMessage);
	}
}
